/*     */ package com.zimbra.cs.dav;
/*     */ 
/*     */ import java.util.Arrays;
/*     */ import java.util.Collection;
/*     */ import java.util.HashMap;
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ public class DavProtocol
/*     */ {
/*     */   public static enum Compliance
/*     */   {
/*  28 */     one,  two,  three, 
/*  29 */     update,  bind,  access_control, 
/*  30 */     calendar_access,  calendar_auto_schedule,  calendar_schedule, 
/*  31 */     version_control, 
/*  32 */     addressbook,  extended_mkcol, 
/*     */     
/*  34 */     calendar_proxy, 
/*  35 */     calendarserver_principal_property_search;
/*     */     
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */     private Compliance() {}
/*     */   }
/*     */   
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*     */ 
/*  61 */   private static HashMap<Compliance, String> sComplianceStrMap = new HashMap();
/*  62 */   static { sComplianceStrMap.put(Compliance.one, "1");
/*  63 */     sComplianceStrMap.put(Compliance.two, "2");
/*  64 */     sComplianceStrMap.put(Compliance.three, "3");
/*  65 */     sComplianceStrMap.put(Compliance.update, "update");
/*  66 */     sComplianceStrMap.put(Compliance.bind, "bind");
/*  67 */     sComplianceStrMap.put(Compliance.access_control, "access-control");
/*  68 */     sComplianceStrMap.put(Compliance.calendar_access, "calendar-access");
/*     */     
/*  70 */     sComplianceStrMap.put(Compliance.calendar_auto_schedule, "calendar-auto-schedule");
/*     */     
/*  72 */     sComplianceStrMap.put(Compliance.calendar_schedule, "calendar-schedule");
/*  73 */     sComplianceStrMap.put(Compliance.version_control, "version-control");
/*  74 */     sComplianceStrMap.put(Compliance.calendar_proxy, "calendar-proxy");
/*  75 */     sComplianceStrMap.put(Compliance.calendarserver_principal_property_search, "calendarserver-principal-property-search");
/*  76 */     sComplianceStrMap.put(Compliance.addressbook, "addressbook");
/*  77 */     sComplianceStrMap.put(Compliance.extended_mkcol, "extended-mkcol");
/*     */   }
/*     */   
/*  80 */   public static Compliance[] COMPLIANCES = { Compliance.one, Compliance.two, Compliance.three, Compliance.calendar_access, Compliance.calendar_proxy, Compliance.calendarserver_principal_property_search, Compliance.access_control, Compliance.addressbook };
/*     */   
/*     */   public static final String XML_CONTENT_TYPE = "text/xml";
/*     */   
/*     */   public static final String XML_CONTENT_TYPE2 = "application/xml";
/*     */   public static final String DAV_CONTENT_TYPE = "text/xml; charset=\"UTF-8\"";
/*     */   public static final String VCARD_CONTENT_TYPE = "text/vcard";
/*     */   
/*  88 */   public static String getDefaultComplianceString() { return getComplianceString(Arrays.asList(COMPLIANCES)); }
/*     */   
/*     */   public static final String DEFAULT_CONTENT_TYPE = "application/octet-stream";
/*     */   
/*  92 */   public static String getComplianceString(Collection<Compliance> comp) { if (comp == null)
/*  93 */       return null;
/*  94 */     StringBuilder buf = new StringBuilder();
/*  95 */     for (Compliance c : comp) {
/*  96 */       if (buf.length() > 0)
/*  97 */         buf.append(", ");
/*  98 */       buf.append((String)sComplianceStrMap.get(c));
/*     */     }
/* 100 */     return buf.toString();
/*     */   }
/*     */   
/*     */   public static final String ENCODING_GZIP = "gzip";
/*     */   public static final String VCARD_VERSION = "3.0";
/*     */   public static final String HEADER_CONTENT_TYPE = "Content-Type";
/*     */   public static final String HEADER_CONTENT_LENGTH = "Content-Length";
/*     */   public static final String HEADER_CONTENT_ENCODING = "Content-Encoding";
/*     */   public static final String HEADER_ALLOW = "Allow";
/*     */   public static final String HEADER_CACHE_CONTROL = "Cache-Control";
/*     */   public static final String HEADER_ETAG = "ETag";
/*     */   public static final String HEADER_USER_AGENT = "User-Agent";
/*     */   public static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding";
/*     */   public static final String HEADER_RANGE = "RANGE";
/*     */   public static final String HEADER_SCHEDULE_REPLY = "Schedule-Reply";
/*     */   public static final String NO_CACHE = "no-cache";
/*     */   public static final String HEADER_DAV = "DAV";
/*     */   public static final String HEADER_DEPTH = "Depth";
/*     */   public static final String HEADER_DESTINATION = "Destination";
/*     */   public static final String HEADER_IF = "If";
/*     */   public static final String HEADER_LOCK_TOKEN = "Lock-Token";
/*     */   public static final String HEADER_OVERWRITE = "Overwrite";
/*     */   public static final String HEADER_BRIEF = "Brief";
/*     */   public static final String HEADER_STATUS_URI = "Status-URI";
/*     */   public static final String HEADER_TIMEOUT = "Timeout";
/*     */   public static final String HEADER_IF_MATCH = "If-Match";
/*     */   public static final String HEADER_IF_NONE_MATCH = "If-None-Match";
/*     */   public static final String HEADER_ORIGINATOR = "Originator";
/*     */   public static final String HEADER_RECIPIENT = "Recipient";
/*     */   public static final String HEADER_MS_AUTHOR_VIA = "MS-Author-Via";
/*     */   public static final int STATUS_PROCESSING = 102;
/*     */   public static final int STATUS_MULTI_STATUS = 207;
/*     */   public static final int STATUS_UNPROCESSABLE_ENTITY = 422;
/*     */   public static final int STATUS_LOCKED = 423;
/*     */   public static final int STATUS_FAILED_DEPENDENCY = 424;
/*     */   public static final int STATUS_INSUFFICIENT_STORAGE = 507;
/*     */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/dav/DavProtocol.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */